home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 August / CICA - The Ultimate Collection of Shareware for Windows (Disc 2) (August 1995).iso / disc2 / nt / hg_nt.exe / 1MB.EXE / OEMSETUP.INF < prev    next >
INI File  |  1993-09-17  |  13KB  |  286 lines

  1. [Identification]
  2.     OptionType = VIDEO
  3. [MiniportDrivers]
  4.     AGX  = !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_IGNORE, 10241024,  {AGX}, 0 , "%SystemRoot%\System32\IoLogMsg.dll"     , 7
  5. [Identify]
  6.     read-syms Identification
  7.     set Status     = STATUS_SUCCESSFUL
  8.     set Identifier = $(OptionType)
  9.     set Media      = #("Source Media Descriptions", 1, 1)
  10.     Return $(Status) $(Identifier) $(Media)
  11. [ReturnOptions]
  12.     set Status        = STATUS_FAILED
  13.     set OptionList     = {}
  14.     set OptionTextList = {}
  15.     set LanguageList = ^(LanguagesSupported, 1)
  16.     Ifcontains(i) $($0) in $(LanguageList)
  17.         goto returnoptions
  18.     else
  19.         set Status = STATUS_NOLANGUAGE
  20.         goto finish_ReturnOptions
  21.     endif
  22. returnoptions = +
  23.     set OptionList     = ^(Options, 0)
  24.     set OptionTextList = ^(OptionsText$($0), 1)
  25.     set Status         = STATUS_SUCCESSFUL
  26. finish_ReturnOptions = +
  27.     Return $(Status) $(OptionList) $(OptionTextList)
  28. [ServicesEntry]
  29.     CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
  30. [InstallOption]
  31.     set Status       = STATUS_FAILED
  32.     set DrivesToFree = {}
  33.     set Option   = $($1)
  34.     set SrcDir   = $($2)
  35.     set AddCopy  = $($3)
  36.     set DoCopy   = $($4)
  37.     set DoConfig = $($5)
  38.     set LanguageList = ^(LanguagesSupported, 1)
  39.     Ifcontains(i) $($0) in $(LanguageList)
  40.     else
  41.         set Status = STATUS_NOLANGUAGE
  42.         goto finish_InstallOption
  43.     endif
  44.     read-syms Strings$($0)
  45.     set OptionList = ^(Options, 0)
  46.     ifcontains $(Option) in $(OptionList)
  47.     else
  48.         goto finish_InstallOption
  49.     endif
  50.     set OptionList = ""
  51.     set MiniportDriver    = #(Options, $(Option), 1)
  52.     set BitsPerPel        = #(Options, $(Option), 2)
  53.     set XResolution       = #(Options, $(Option), 3)
  54.     set YResolution       = #(Options, $(Option), 4)
  55.     set VRefresh          = #(Options, $(Option), 5)
  56.     set Interlaced        = #(Options, $(Option), 6)
  57.     set Type              = $(#(MiniportDrivers, $(MiniportDriver), 1))
  58.     set Group             =   #(MiniportDrivers, $(MiniportDriver), 2)
  59.     set ErrorControl      = $(#(MiniportDrivers, $(MiniportDriver), 3))
  60.     set Tag               =   #(MiniportDrivers, $(MiniportDriver), 4)
  61.     set InstalledDisplays =   #(MiniportDrivers, $(MiniportDriver), 5)
  62.     set VgaCompatible     =   #(MiniportDrivers, $(MiniportDriver), 6)
  63.     set EventMessageFile  =   #(MiniportDrivers, $(MiniportDriver), 7)
  64.     set TypesSupported    =   #(MiniportDrivers, $(MiniportDriver), 8)
  65.     read-syms ServicesEntry
  66.     detect    ServicesEntry
  67. installtheoption = +
  68.     ifstr(i) $(AddCopy) == "YES"
  69.         set DoActualCopy = NO
  70.         set FileToCheck = #(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  71.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\drivers\"$(FileToCheck)
  72.         ifstr(i) $(STATUS) == NO
  73.             set DoActualCopy = YES
  74.             goto addfiles
  75.         endif
  76.         ForListDo $(InstalledDisplays)
  77.             set FileToCheck = #(Files-DisplayDLLs, $($), 2)
  78.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  79.             ifstr(i) $(STATUS) == NO
  80.                 set DoActualCopy = YES
  81.             endif
  82.         EndForListDo
  83. addfiles = +
  84.         ifstr(i) $(DoActualCopy) == NO
  85.             shell "subroutn.inf" DriversExist $($0) $(String1)
  86.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  87.                 Debug-Output "VIDEO.INF: shelling DriversExist failed"
  88.                 goto finish_InstallOption
  89.             endif
  90.             ifstr(i) $($R0) == STATUS_CURRENT
  91.             else-ifstr(i) $($R0) == STATUS_NEW
  92.                 set DoActualCopy = YES
  93.             else-ifstr(i) $($R0) == STATUS_USERCANCEL
  94.                 Debug-Output "VIDEO.INF: User cancelled video installation"
  95.                 goto finish_InstallOption
  96.             else
  97.                 Debug-Output "VIDEO.INF: Error reported in DriversExist routine in SUBROUTN.INF"
  98.                 goto finish_InstallOption
  99.             endif
  100.         endif
  101.         ifstr(i) $(DoActualCopy) == YES
  102.             shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
  103.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  104.                 Debug-Output "VIDEO.INF: shelling DoAskSourceEx failed"
  105.                 goto finish_InstallOption
  106.             endif
  107.             ifstr(i) $($R0) == STATUS_SUCCESSFUL
  108.                 set SrcDir = $($R1)
  109.                 ifstr(i) $($R2) != ""
  110.                     set DrivesToFree = >($(DrivesToFree), $($R2))
  111.                 endif
  112.             else
  113.                 Debug-Output "VIDEO.INF: User cancelled asking source."
  114.                 goto finish_InstallOption
  115.             endif
  116.             install Install-AddCopyOption
  117.             ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  118.                 Debug-Output "VIDEO.INF: Adding video files to copy list failed"
  119.                 goto finish_InstallOption
  120.             endif
  121.         else
  122.             set DoCopy = NO
  123.         endif
  124.     endif
  125.     ifstr(i) $(DoCopy) == "YES"
  126.         read-syms ProgressCopy$($0)
  127.         install Install-DoCopyOption
  128.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  129.             Debug-Output "Copying files failed"
  130.             goto finish_InstallOption
  131.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  132.             set Status = STATUS_USERCANCEL
  133.             goto finish_InstallOption
  134.         endif
  135.     endif
  136.     ifstr(i) $(DoConfig) == "YES"
  137.         shell "registry.inf" CheckSetupModify
  138.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  139.             goto finish_InstallOption
  140.         endif
  141.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  142.             goto finish_InstallOption
  143.         endif
  144.         set ServiceNode   = $(MiniportDriver)
  145.         set ServiceBinary = %SystemRoot%\System32\drivers\#(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  146.         set ServicesValues   = { +
  147.                 {Type,           0, $(!REG_VT_DWORD),     $(Type)                  }, +
  148.                 {Start,          0, $(!REG_VT_DWORD),     $(!SERVICE_SYSTEM_START) }, +
  149.                 {Group,          0, $(!REG_VT_SZ),        $(Group)                 }, +
  150.                 {ErrorControl,   0, $(!REG_VT_DWORD),     $(ErrorControl)          }, +
  151.                 {Tag,            0, $(!REG_VT_DWORD),     $(Tag)                   }, +
  152.                 {BinaryPathName, 0, $(!REG_VT_EXPAND_SZ), $(ServiceBinary)         }  +
  153.                 }
  154.         set ParametersValues = { +
  155.                 {InstalledDisplayDrivers,     0, $(!REG_VT_MULTI_SZ), $(InstalledDisplays) }, +
  156.                 {VgaCompatible,               0, $(!REG_VT_DWORD),    $(VgaCompatible)     }, +
  157.                 {DefaultSettings.BitsPerPel,  0, $(!REG_VT_DWORD),    $(BitsPerPel)        }, +
  158.                 {DefaultSettings.XResolution, 0, $(!REG_VT_DWORD),    $(XResolution)       }, +
  159.                 {DefaultSettings.YResolution, 0, $(!REG_VT_DWORD),    $(YResolution)       }  +
  160.                 }
  161.         ifstr(i) $(VRefresh) != ""
  162.             set VRefreshValue = {DefaultSettings.VRefresh, 0, $(!REG_VT_DWORD), $(VRefresh)}
  163.             set ParametersValues = >($(ParametersValues), $(VRefreshValue))
  164.         endif
  165.         ifstr(i) $(Interlaced) != ""
  166.             set InterlacedValue = {DefaultSettings.Interlaced, 0, $(!REG_VT_DWORD), $(Interlaced)}
  167.             set ParametersValues = >($(ParametersValues), $(InterlacedValue))
  168.         endif
  169.         set DeviceValues     = {}
  170.         set EventLogValues   = { +
  171.                 {EventMessageFile, 0, $(!REG_VT_EXPAND_SZ), $(EventMessageFile) }, +
  172.                 {TypesSupported,   0, $(!REG_VT_DWORD),     $(TypesSupported)   }  +
  173.                 }
  174.         shell "registry.inf"  MakeServicesEntry $(ServiceNode)      +
  175.                                                 $(ServicesValues)   +
  176.                                                 $(ParametersValues) +
  177.                                                 $(DeviceValues)     +
  178.                                                 $(EventLogValues)   +
  179.                                                 Device0
  180.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  181.             Debug-Output "Couldn't execute MakeServicesEntry in registry.inf"
  182.             goto finish_InstallOption
  183.         endif
  184.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  185.             Debug-Output "MakeServicesEntry failed for video"
  186.             goto finish_InstallOption
  187.         endif
  188.         ifstr(i) $(CurrentEntry) != $(MiniportDriver)
  189.             ifstr(i) $(CurrentEntry) != VGA
  190.                 ifstr(i) $(CurrentEntry) != ""
  191.                     shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_DISABLED)
  192.                     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  193.                         Debug-Output "Couldn't find DisableServicesEntry in registry.inf"
  194.                         goto errorconfig
  195.                     endif
  196.                     ifstr(i) $($R0) != STATUS_SUCCESSFUL
  197.                         Debug-Output "DisableServices entry failed"
  198.                     endif
  199.                 endif
  200.             endif
  201.         endif
  202.         goto configdone
  203. errorconfig = +
  204.         ifstr(i) $(CurrentEntry) != $(MiniportDriver)
  205.             shell "registry.inf" ModifyServicesEntry $(MiniportDriver) $(!SERVICE_DISABLED)
  206.             ifstr(i) $(CurrentEntry) != ""
  207.                 shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_SYSTEM_START)
  208.             endif
  209.         endif
  210.         goto finish_InstallOption
  211. configdone = +
  212.     endif
  213.     set Status = STATUS_SUCCESSFUL
  214. finish_InstallOption = +
  215.     ForListDo $(DrivesToFree)
  216.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  217.     EndForListDo
  218.     Return $(Status)
  219. [Install-AddCopyOption]
  220.     set STF_VITAL = ""
  221.     AddSectionKeyFileToCopyList   Files-DisplayMiniportDrivers   +
  222.                                   $(MiniportDriver)              +
  223.                                   $(SrcDir)                      +
  224.                                   $(!STF_WINDOWSSYSPATH)\drivers
  225.     ForListDo $(InstalledDisplays)
  226.         AddSectionKeyFileToCopyList   Files-DisplayDLLs          +
  227.                                       $($)                       +
  228.                                       $(SrcDir)                  +
  229.                                       $(!STF_WINDOWSSYSPATH)
  230.     EndForListDo
  231.     exit
  232. [Install-DoCopyOption]
  233.     CopyFilesInCopyList
  234.     exit
  235. [Source Media Descriptions]
  236.     1  = "AGX Windows NT Driver Disk"
  237. [ProductType]
  238. STF_PRODUCT  = Winnt
  239. STF_PLATFORM = I386
  240. [Files-DisplayDLLs]
  241. AGX = 1,AGX.DLL , SIZE=999
  242. [Files-DisplayMiniportDrivers]
  243. AGX = 1,AGX.SYS , SIZE=999
  244. [LanguagesSupported]
  245.     ENG
  246. [OptionsTextENG]
  247.     "AGX 640x480x8x60"    =    "AGX 640x480, 256 colors, 60Hz"
  248.     "AGX 640x480x8x70"    =    "AGX 640x480, 256 colors, 70Hz"
  249.     "AGX 640x480x8x90"    =    "AGX 640x480, 256 colors, 90Hz"
  250.     "AGX 800x600x8x56"    =    "AGX 800x600, 256 colors, 56Hz"
  251.     "AGX 800x600x8x60"    =    "AGX 800x600, 256 colors, 60Hz"
  252.     "AGX 800x600x8x70"    =    "AGX 800x600, 256 colors, 70Hz"
  253.     "AGX 800x600x8x90"    =    "AGX 800x600, 256 colors, 90Hz"
  254.     "AGX 1024x768x8x60"    =    "AGX 1024x768, 256 colors, 60Hz"
  255.     "AGX 1024x768x8x70"    =    "AGX 1024x768, 256 colors, 70Hz"
  256.     "AGX 1024x768x8x90"    =    "AGX 1024x768, 256 colors, 90iHz"
  257. [Options]
  258.     "AGX 640x480x8x60"    =    AGX,  8,  640,  480,  60, 0
  259.     "AGX 640x480x8x70"    =    AGX,  8,  640,  480,  70, 0
  260.     "AGX 640x480x8x90"    =    AGX,  8,  640,  480,  90, 0
  261.     "AGX 800x600x8x56"    =    AGX,  8,  800,  600,  56, 0
  262.     "AGX 800x600x8x60"    =    AGX,  8,  800,  600,  60, 0
  263.     "AGX 800x600x8x70"    =    AGX,  8,  800,  600,  70, 0
  264.     "AGX 800x600x8x90"    =    AGX,  8,  800,  600,  90, 0
  265.     "AGX 1024x768x8x60"    =    AGX,  8, 1024,  768,  60, 0
  266.     "AGX 1024x768x8x70"    =    AGX,  8, 1024,  768,  70, 0
  267.     "AGX 1024x768x8x90"    =    AGX,  8, 1024,  768,  90, 0
  268. [ProgressCopyENG]
  269.     ProCaption   = "Windows NT Setup"
  270.     ProCancel    = "Cancel"
  271.     ProCancelMsg = "Windows NT is not correcly installed.  Are you sure you want "+
  272.                    "to cancel copying files?"
  273.     ProCancelCap = "Setup Message"
  274.     ProText1     = "Copying:"
  275.     ProText2     = "To:"
  276. [StringsENG]
  277.     String1 = "Display"
  278.     String2 = "Please enter the full path to the Windows NT Display "+
  279.               "driver files.  If you want to install files from the "+
  280.               "original Setup floppy disks, type a drive letter (such "+
  281.               "as A:) and Setup will prompt you for the correct disk.  "+
  282.               "Then choose Continue."
  283.  
  284.  
  285.  
  286.